package com.stylefeng.guns.config.web;

import org.beetl.core.GroupTemplate;
import org.beetl.core.Template;
import org.beetl.ext.web.WebRenderExt;
import org.springframework.context.annotation.Configuration;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <pre>
 *    author  : xiej
 *    time    : 2018/6/2610:41
 *    desc    : 输入描述
 *    version : v1.0
 * </pre>
 */
@Configuration
public class Test implements WebRenderExt {
    static long version = System.currentTimeMillis();
    @Override
    public void modify(Template template, GroupTemplate arg1, HttpServletRequest arg2, HttpServletResponse arg3) {
        //js,css 的版本编号
        template.binding("ctxPath",version);
    }
}
